package person;

import book.BookList;
import ioperations.IOperations;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-31
 * Time: 14:43
 */
public abstract class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract int menu();

    IOperations[] iOperations;
    public void doOperation(int choice, BookList bookList) {
            iOperations[choice].work(bookList);
    }
}
